package peppa.george.base.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import peppa.george.base.Util.PageUtil;
import peppa.george.base.query.BaseQuery;
import peppa.george.base.service.BaseService;

import java.util.List;

public class BaseServiceimpl<T> implements BaseService<T> {

    @Autowired
    private BaseService<T> baseService;

    public List<T> findall() {
        return baseService.findall();
    }

    public T findone(Long id) {
        return baseService.findone(id);
    }

    public void save(T t) {
        baseService.save(t);
    }

    public void update(T t) {
        baseService.update(t);
    }

    public void remove(Long id) {
        baseService.remove(id);
    }

    public PageUtil<T> QueryData(BaseQuery query) {
        return baseService.QueryData(query);
    }

    public void patchremove(List<Long> ids) {
        baseService.patchremove(ids);
    }
}
